package com.thinvent.recommend.mapper;

import com.thinvent.recommend.entity.KbUserFavorites;
import com.thinvent.recommend.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KbUserFavoritesMapper extends BaseMapper<KbUserFavorites, String> {

    /**
     * 根据 userId 查询该用户所有的收藏记录
     *
     * @param userId 用户 ID
     * @return 对应的 KbUserFavorite 列表
     */
    List<KbUserFavorites> selectByUserId(@Param("userId") String userId);

}